<#import "/freemarker/modeltype.ftl" as mt>
<div class="dataTables_title">
	<div class="dataTables_title_left">按钮注释</div>
	<div class="dataTables_title_right">
		<a class="btn" href="javascript:;"><i class="fontello-icon-newspaper"></i> 详情</a>
	</div>
</div>
<table cellpadding="1" cellspacing="1" class="table table-bordered">
	<thead>
		<tr class="ui-widget-header">
			<th>请假人</th>
			<th>原因</th>
			<th>审核状态</th>
			<th>开始时间</th>
			<th>结束时间</th>
			<th style="width:30px;">操作</th>
		</tr>
	</thead>
	<#list pageBean.resultList as leave>
	<tr class="ui-widget-content">
		<td>${(leave.cuname)!''}</td>
		<td>${(leave.reason)!''}</td>
		<td><#if (leave.auditStatusList?? && leave.auditStatusList?size gt 0)>
				<#list leave.auditStatusList as list>
						【<span><#if list.status?? && list.status == 1><font style="color:green;">通过</font><#elseif list.status?? && list.status == 2><font style="color:red;">未通过 &nbsp;原因：${(list.remark)!''}</font><#else>未审核</#if></span>】
						<#break/>
				</#list>
			</#if></td>
		<td>${(leave.st?string("yyyy-MM-dd"))!''}</td>
		<td>${(leave.et?string("yyyy-MM-dd"))!''}</td>
		<td>
			<div class="btn-group">
				<a class="btn btn-xs btn-warning" onclick="javascript:editAgree_leave('${leave.code}');return false;" title="同意申请">
					<i class="icon-book"></i></a>
			</div>
		</td>
	</tr>
	</#list>
</table>
<#import "/freemarker/pagination.ftl" as p>
<@p.pagination pageBean 'queryLeave_leave'/>